package org.itboys.core.entity.mysql;

import org.itboys.mysql.entity.BaseMySqlEntity;

import java.util.Date;
import java.util.List;

/**
 * @Author：贾琦磊
 * @Date：2018/8/15
 * @Description：入库单
 */
public class SundayInStoreOrder extends BaseMySqlEntity{
    public static final String REASON_BACK="用户退货";
    public static final String REASON_IN="仓库进货";
    public static final Integer TYPE_BACK=2;//退货，
    public static final Integer TYPE_ADD_PRODUCT=1;//补货单

    /**
     * 编号（U日期序号）
     */
    private String number;
    /**
     * 备注
     */
    private String remark;
    /**
     * 入货仓库（前置仓id）
     */
    private Long  preStoreId;
    /**
     * 前置仓名称
     */
    private String preStoreName;
    /**
     * 出货仓库（中心仓库）
     */
    private Long  centerStoreId;
    /**
     * 中心仓名称
     */
    private String centerStoreName;
    /**
     * 入库类型
     * 补货单--1
     * 用户退货--2
     */
    private Integer type;

    private List<SundayInStoreOrderSKU> skus;

    public SundayInStoreOrder() {
    }

    public SundayInStoreOrder(  Long preStoreId, Long centerStoreId,Integer type,String remark) {
        this.preStoreId = preStoreId;
        this.centerStoreId = centerStoreId;
        this.type=type;
        this.remark=remark;
    }
    public SundayInStoreOrder(String number,String remark, Long preStoreId, String preStoreName, Long centerStoreId, String centerStoreName) {
        this.number = number;
        this.remark = remark;
        this.preStoreId = preStoreId;
        this.preStoreName = preStoreName;
        this.centerStoreId = centerStoreId;
        this.centerStoreName = centerStoreName;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getPreStoreId() {
        return preStoreId;
    }

    public void setPreStoreId(Long preStoreId) {
        this.preStoreId = preStoreId;
    }

    public Long getCenterStoreId() {
        return centerStoreId;
    }

    public void setCenterStoreId(Long centerStoreId) {
        this.centerStoreId = centerStoreId;
    }

    public String getPreStoreName() {
        return preStoreName;
    }

    public void setPreStoreName(String preStoreName) {
        this.preStoreName = preStoreName;
    }

    public String getCenterStoreName() {
        return centerStoreName;
    }

    public void setCenterStoreName(String centerStoreName) {
        this.centerStoreName = centerStoreName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<SundayInStoreOrderSKU> getSkus() {
        return skus;
    }

    public void setSkus(List<SundayInStoreOrderSKU> skus) {
        this.skus = skus;
    }


}
